<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Whisper: CPacketBuilder Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Whisper
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-types">Private Types</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">CPacketBuilder Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="CPacketBuilder" --><!-- doxytag: inherits="IExtBitSource" -->
<p><code>#include &lt;<a class="el" href="packet__builder_8h_source.html">packet_builder.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for CPacketBuilder:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classCPacketBuilder.png" usemap="#CPacketBuilder_map" alt=""/>
  <map id="CPacketBuilder_map" name="CPacketBuilder_map">
<area href="classIExtBitSource.html" title="abstract steg payload bit source" alt="IExtBitSource" shape="rect" coords="0,0,99,24"/>
</map>
 </div></div>

<p><a href="classCPacketBuilder-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#aee1a235efdbd190ca5d8f4a14e099bdc">CPacketBuilder</a> (<a class="el" href="properties__reader_8h.html#a67847fd00cb49d80dd45f61722eb9a43">CPropertiesReader</a> *pConfig, <a class="el" href="classIPacketSource.html">IPacketSource</a> *pPacketSource)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#a4847309e73ddb3d2281a645971b33bec">~CPacketBuilder</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classIExtBitSource.html#aa0bbdedd57f84dedbe13dbf6bdff6f4a">EBitValue</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#a83f920ecd9efcf50d53411a4eb346249">getBit</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#a23dc1c4a72fd2fc79ecd0fb6f2fc0569">putBit</a> (bool pBitValue, bool pFirstBit)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#ab50a7766db2735cdea1206cfe62d979a">getMaxFrameLength</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-types"></a>
Private Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#abbea5718fbb311af19e513aa96448c67">ESendPacketState</a> { <a class="el" href="classCPacketBuilder.html#abbea5718fbb311af19e513aa96448c67ab3c83e466ca00f07e2b89102e8fe5d9e">SEND_STATE_WAIT_FOR_NEXT</a> =  0, 
<a class="el" href="classCPacketBuilder.html#abbea5718fbb311af19e513aa96448c67ae168dd464ea46a07eb3d06906da18617">SEND_STATE_NEXT_IS_READY</a>, 
<a class="el" href="classCPacketBuilder.html#abbea5718fbb311af19e513aa96448c67aced1a5079f07e517a184e23f8ba7e069">SEND_STATE_PACKET</a>
 }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#a5e3c5517522920fb21c8a161586ec4b3">ERecvPacketState</a> { <a class="el" href="classCPacketBuilder.html#a5e3c5517522920fb21c8a161586ec4b3ab927d9e368e3ee87fb66426ab7f19cde">RECV_STATE_WAIT_FOR_NEXT</a> =  0, 
<a class="el" href="classCPacketBuilder.html#a5e3c5517522920fb21c8a161586ec4b3a6ff438ada675b4df7c9160acfccd70e6">RECV_STATE_BEGIN</a>, 
<a class="el" href="classCPacketBuilder.html#a5e3c5517522920fb21c8a161586ec4b3a03b413fa49cc13538fc3b686d52523a1">RECV_STATE_LENGTH_FIELD</a>, 
<a class="el" href="classCPacketBuilder.html#a5e3c5517522920fb21c8a161586ec4b3a33a94928ba38794a2ccad48ccdb83129">RECV_STATE_PAYLOAD</a>
 }</td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceNPacketSource.html#a41d32c941906c55fd056bc4be5e0c79b">NPacketSource::EPayloadInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#a7f85bf7867f191dd3b70c96b7fa1c12b">createNextSendPacket</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#a7a00dcb89b6af5670e6865b00cb0f8ca">writeByteToBoolVector</a> (std::vector&lt; bool &gt; &amp;pVector, unsigned int pStartIndex, unsigned char pByteValue)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#a9c1f2a51958c83e346295d47d3eaf13d">readByteFromBoolVector</a> (std::vector&lt; bool &gt; &amp;pVector, unsigned int pStartIndex, unsigned char &amp;pByteValue)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#a0aecfdc83b0950d099668943b653d6d7">readBytesFromBoolVector</a> (std::vector&lt; bool &gt; &amp;pVector, unsigned int pStartIndex, void *pBytes, unsigned int pLength)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#aceb1db7b2ad782c876d3e960d9f61cf8">CPacketBuilder</a> (const <a class="el" href="classCPacketBuilder.html">CPacketBuilder</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCPacketBuilder.html">CPacketBuilder</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#a01cabb7ef3a4a759ba4f47748451bd19">operator=</a> (const <a class="el" href="classCPacketBuilder.html">CPacketBuilder</a> &amp;)</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#a5377d2447dd5b25a67c379248babc5ca">mError</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="properties__reader_8h.html#a67847fd00cb49d80dd45f61722eb9a43">CPropertiesReader</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#aa4c1bff0467b28622b8c6133deb4b69d">mConfig</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classIPacketSource.html">IPacketSource</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#abad2cce898f78d8c38fdb0b873f00dbb">mPacketSource</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#a5c5962a8091ba05b589b8788cd002ece">mMaxPayload</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#ab84ca95996b25526f36866ac5ae0f588">mIgnoreWrongCRC</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceNPacketSource.html#a41d32c941906c55fd056bc4be5e0c79b">NPacketSource::EPayloadInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#a134cb0e013ddf5ad34fbd9fe204ae632">mSendPayloadInfo</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCPacketBuilder.html#abbea5718fbb311af19e513aa96448c67">ESendPacketState</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#a19b5eca0e74948e53cf55568ccddce8a">mSendState</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::vector&lt; bool &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#a441cf84e62698c8a0303083ab18dbb45">mSendPacket</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#af20c05841f12ae9386e7817bf9d794b9">mSendBitCount</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#ab1aa160f71acd51cf7be170454b46416">mSendBitIndex</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#aab69009e195d44e0bb8776285f17d277">mSendPayloadLength</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCPacketBuilder.html#a5e3c5517522920fb21c8a161586ec4b3">ERecvPacketState</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#ad20f0d602233bceb8f739e59cd435953">mRecvState</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::vector&lt; bool &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#a84bca46dfb8d1488d52b3c5534c986a0">mRecvPacket</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#aaf25ffd0b42977833b58e2d6a9e395ea">mRecvBitCount</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#a3d8ef51647f24a933a743ec2258fc008">mRecvBitIndex</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#a932a4a895d4bedb9b1c981714c481c55">mRecvPayloadLength</a></td></tr>
<tr><td colspan="2"><h2><a name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCPacketBuilder.html#ad11538f861ae424701c94713341af1a1">sIniSection</a> = &quot;PACKET_BUILDER&quot;</td></tr>
</table>
<hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a5e3c5517522920fb21c8a161586ec4b3"></a><!-- doxytag: member="CPacketBuilder::ERecvPacketState" ref="a5e3c5517522920fb21c8a161586ec4b3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classCPacketBuilder.html#a5e3c5517522920fb21c8a161586ec4b3">CPacketBuilder::ERecvPacketState</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a5e3c5517522920fb21c8a161586ec4b3ab927d9e368e3ee87fb66426ab7f19cde"></a><!-- doxytag: member="RECV_STATE_WAIT_FOR_NEXT" ref="a5e3c5517522920fb21c8a161586ec4b3ab927d9e368e3ee87fb66426ab7f19cde" args="" -->RECV_STATE_WAIT_FOR_NEXT</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a5e3c5517522920fb21c8a161586ec4b3a6ff438ada675b4df7c9160acfccd70e6"></a><!-- doxytag: member="RECV_STATE_BEGIN" ref="a5e3c5517522920fb21c8a161586ec4b3a6ff438ada675b4df7c9160acfccd70e6" args="" -->RECV_STATE_BEGIN</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a5e3c5517522920fb21c8a161586ec4b3a03b413fa49cc13538fc3b686d52523a1"></a><!-- doxytag: member="RECV_STATE_LENGTH_FIELD" ref="a5e3c5517522920fb21c8a161586ec4b3a03b413fa49cc13538fc3b686d52523a1" args="" -->RECV_STATE_LENGTH_FIELD</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a5e3c5517522920fb21c8a161586ec4b3a33a94928ba38794a2ccad48ccdb83129"></a><!-- doxytag: member="RECV_STATE_PAYLOAD" ref="a5e3c5517522920fb21c8a161586ec4b3a33a94928ba38794a2ccad48ccdb83129" args="" -->RECV_STATE_PAYLOAD</em>&nbsp;</td><td>
</td></tr>
</table>
</dd>
</dl>

</div>
</div>
<a class="anchor" id="abbea5718fbb311af19e513aa96448c67"></a><!-- doxytag: member="CPacketBuilder::ESendPacketState" ref="abbea5718fbb311af19e513aa96448c67" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classCPacketBuilder.html#abbea5718fbb311af19e513aa96448c67">CPacketBuilder::ESendPacketState</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="abbea5718fbb311af19e513aa96448c67ab3c83e466ca00f07e2b89102e8fe5d9e"></a><!-- doxytag: member="SEND_STATE_WAIT_FOR_NEXT" ref="abbea5718fbb311af19e513aa96448c67ab3c83e466ca00f07e2b89102e8fe5d9e" args="" -->SEND_STATE_WAIT_FOR_NEXT</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="abbea5718fbb311af19e513aa96448c67ae168dd464ea46a07eb3d06906da18617"></a><!-- doxytag: member="SEND_STATE_NEXT_IS_READY" ref="abbea5718fbb311af19e513aa96448c67ae168dd464ea46a07eb3d06906da18617" args="" -->SEND_STATE_NEXT_IS_READY</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="abbea5718fbb311af19e513aa96448c67aced1a5079f07e517a184e23f8ba7e069"></a><!-- doxytag: member="SEND_STATE_PACKET" ref="abbea5718fbb311af19e513aa96448c67aced1a5079f07e517a184e23f8ba7e069" args="" -->SEND_STATE_PACKET</em>&nbsp;</td><td>
</td></tr>
</table>
</dd>
</dl>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aee1a235efdbd190ca5d8f4a14e099bdc"></a><!-- doxytag: member="CPacketBuilder::CPacketBuilder" ref="aee1a235efdbd190ca5d8f4a14e099bdc" args="(CPropertiesReader *pConfig, IPacketSource *pPacketSource)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CPacketBuilder::CPacketBuilder </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="properties__reader_8h.html#a67847fd00cb49d80dd45f61722eb9a43">CPropertiesReader</a> *&#160;</td>
          <td class="paramname"><em>pConfig</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classIPacketSource.html">IPacketSource</a> *&#160;</td>
          <td class="paramname"><em>pPacketSource</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a4847309e73ddb3d2281a645971b33bec"></a><!-- doxytag: member="CPacketBuilder::~CPacketBuilder" ref="a4847309e73ddb3d2281a645971b33bec" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CPacketBuilder::~CPacketBuilder </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aceb1db7b2ad782c876d3e960d9f61cf8"></a><!-- doxytag: member="CPacketBuilder::CPacketBuilder" ref="aceb1db7b2ad782c876d3e960d9f61cf8" args="(const CPacketBuilder &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CPacketBuilder::CPacketBuilder </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCPacketBuilder.html">CPacketBuilder</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a7f85bf7867f191dd3b70c96b7fa1c12b"></a><!-- doxytag: member="CPacketBuilder::createNextSendPacket" ref="a7f85bf7867f191dd3b70c96b7fa1c12b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceNPacketSource.html#a41d32c941906c55fd056bc4be5e0c79b">NPacketSource::EPayloadInfo</a> CPacketBuilder::createNextSendPacket </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a83f920ecd9efcf50d53411a4eb346249"></a><!-- doxytag: member="CPacketBuilder::getBit" ref="a83f920ecd9efcf50d53411a4eb346249" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classIExtBitSource.html#aa0bbdedd57f84dedbe13dbf6bdff6f4a">IExtBitSource::EBitValue</a> CPacketBuilder::getBit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>bit from protocol layer to embedding-engine for embedding. </p>

<p>Implements <a class="el" href="classIExtBitSource.html#a8fe40c2c08399cbc557c94cc4a2c33d7">IExtBitSource</a>.</p>

</div>
</div>
<a class="anchor" id="ab50a7766db2735cdea1206cfe62d979a"></a><!-- doxytag: member="CPacketBuilder::getMaxFrameLength" ref="ab50a7766db2735cdea1206cfe62d979a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int CPacketBuilder::getMaxFrameLength </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>get maximum number of bits which are possible between two preambles </p>

<p>Implements <a class="el" href="classIExtBitSource.html#abf48cd81d8bb68d2361dc44975365afc">IExtBitSource</a>.</p>

</div>
</div>
<a class="anchor" id="a01cabb7ef3a4a759ba4f47748451bd19"></a><!-- doxytag: member="CPacketBuilder::operator=" ref="a01cabb7ef3a4a759ba4f47748451bd19" args="(const CPacketBuilder &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCPacketBuilder.html">CPacketBuilder</a>&amp; CPacketBuilder::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCPacketBuilder.html">CPacketBuilder</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a23dc1c4a72fd2fc79ecd0fb6f2fc0569"></a><!-- doxytag: member="CPacketBuilder::putBit" ref="a23dc1c4a72fd2fc79ecd0fb6f2fc0569" args="(bool pBitValue, bool pFirstBit)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CPacketBuilder::putBit </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>pBitValue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>pFirstBit</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>bit from stego-stream to protocol layer. this methode will be called by a embedding engine after extracting a bit.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pBitValue</td><td>Value which should be stored </td></tr>
    <tr><td class="paramname">pFirstBit</td><td>Is true if it is the first bit after the preamble </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="classIExtBitSource.html#ac83be51f35b433c4357f410d6795bc73">IExtBitSource</a>.</p>

</div>
</div>
<a class="anchor" id="a9c1f2a51958c83e346295d47d3eaf13d"></a><!-- doxytag: member="CPacketBuilder::readByteFromBoolVector" ref="a9c1f2a51958c83e346295d47d3eaf13d" args="(std::vector&lt; bool &gt; &amp;pVector, unsigned int pStartIndex, unsigned char &amp;pByteValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CPacketBuilder::readByteFromBoolVector </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; bool &gt; &amp;&#160;</td>
          <td class="paramname"><em>pVector</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pStartIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char &amp;&#160;</td>
          <td class="paramname"><em>pByteValue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a0aecfdc83b0950d099668943b653d6d7"></a><!-- doxytag: member="CPacketBuilder::readBytesFromBoolVector" ref="a0aecfdc83b0950d099668943b653d6d7" args="(std::vector&lt; bool &gt; &amp;pVector, unsigned int pStartIndex, void *pBytes, unsigned int pLength)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int CPacketBuilder::readBytesFromBoolVector </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; bool &gt; &amp;&#160;</td>
          <td class="paramname"><em>pVector</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pStartIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>pBytes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pLength</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a7a00dcb89b6af5670e6865b00cb0f8ca"></a><!-- doxytag: member="CPacketBuilder::writeByteToBoolVector" ref="a7a00dcb89b6af5670e6865b00cb0f8ca" args="(std::vector&lt; bool &gt; &amp;pVector, unsigned int pStartIndex, unsigned char pByteValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CPacketBuilder::writeByteToBoolVector </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; bool &gt; &amp;&#160;</td>
          <td class="paramname"><em>pVector</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pStartIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char&#160;</td>
          <td class="paramname"><em>pByteValue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="aa4c1bff0467b28622b8c6133deb4b69d"></a><!-- doxytag: member="CPacketBuilder::mConfig" ref="aa4c1bff0467b28622b8c6133deb4b69d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="properties__reader_8h.html#a67847fd00cb49d80dd45f61722eb9a43">CPropertiesReader</a>* <a class="el" href="classCPacketBuilder.html#aa4c1bff0467b28622b8c6133deb4b69d">CPacketBuilder::mConfig</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a5377d2447dd5b25a67c379248babc5ca"></a><!-- doxytag: member="CPacketBuilder::mError" ref="a5377d2447dd5b25a67c379248babc5ca" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classCPacketBuilder.html#a5377d2447dd5b25a67c379248babc5ca">CPacketBuilder::mError</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ab84ca95996b25526f36866ac5ae0f588"></a><!-- doxytag: member="CPacketBuilder::mIgnoreWrongCRC" ref="ab84ca95996b25526f36866ac5ae0f588" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classCPacketBuilder.html#ab84ca95996b25526f36866ac5ae0f588">CPacketBuilder::mIgnoreWrongCRC</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a5c5962a8091ba05b589b8788cd002ece"></a><!-- doxytag: member="CPacketBuilder::mMaxPayload" ref="a5c5962a8091ba05b589b8788cd002ece" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="classCPacketBuilder.html#a5c5962a8091ba05b589b8788cd002ece">CPacketBuilder::mMaxPayload</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="abad2cce898f78d8c38fdb0b873f00dbb"></a><!-- doxytag: member="CPacketBuilder::mPacketSource" ref="abad2cce898f78d8c38fdb0b873f00dbb" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classIPacketSource.html">IPacketSource</a>* <a class="el" href="classCPacketBuilder.html#abad2cce898f78d8c38fdb0b873f00dbb">CPacketBuilder::mPacketSource</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aaf25ffd0b42977833b58e2d6a9e395ea"></a><!-- doxytag: member="CPacketBuilder::mRecvBitCount" ref="aaf25ffd0b42977833b58e2d6a9e395ea" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="classCPacketBuilder.html#aaf25ffd0b42977833b58e2d6a9e395ea">CPacketBuilder::mRecvBitCount</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a3d8ef51647f24a933a743ec2258fc008"></a><!-- doxytag: member="CPacketBuilder::mRecvBitIndex" ref="a3d8ef51647f24a933a743ec2258fc008" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="classCPacketBuilder.html#a3d8ef51647f24a933a743ec2258fc008">CPacketBuilder::mRecvBitIndex</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a84bca46dfb8d1488d52b3c5534c986a0"></a><!-- doxytag: member="CPacketBuilder::mRecvPacket" ref="a84bca46dfb8d1488d52b3c5534c986a0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;bool&gt; <a class="el" href="classCPacketBuilder.html#a84bca46dfb8d1488d52b3c5534c986a0">CPacketBuilder::mRecvPacket</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a932a4a895d4bedb9b1c981714c481c55"></a><!-- doxytag: member="CPacketBuilder::mRecvPayloadLength" ref="a932a4a895d4bedb9b1c981714c481c55" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="classCPacketBuilder.html#a932a4a895d4bedb9b1c981714c481c55">CPacketBuilder::mRecvPayloadLength</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ad20f0d602233bceb8f739e59cd435953"></a><!-- doxytag: member="CPacketBuilder::mRecvState" ref="ad20f0d602233bceb8f739e59cd435953" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCPacketBuilder.html#a5e3c5517522920fb21c8a161586ec4b3">ERecvPacketState</a> <a class="el" href="classCPacketBuilder.html#ad20f0d602233bceb8f739e59cd435953">CPacketBuilder::mRecvState</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af20c05841f12ae9386e7817bf9d794b9"></a><!-- doxytag: member="CPacketBuilder::mSendBitCount" ref="af20c05841f12ae9386e7817bf9d794b9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="classCPacketBuilder.html#af20c05841f12ae9386e7817bf9d794b9">CPacketBuilder::mSendBitCount</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ab1aa160f71acd51cf7be170454b46416"></a><!-- doxytag: member="CPacketBuilder::mSendBitIndex" ref="ab1aa160f71acd51cf7be170454b46416" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="classCPacketBuilder.html#ab1aa160f71acd51cf7be170454b46416">CPacketBuilder::mSendBitIndex</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a441cf84e62698c8a0303083ab18dbb45"></a><!-- doxytag: member="CPacketBuilder::mSendPacket" ref="a441cf84e62698c8a0303083ab18dbb45" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;bool&gt; <a class="el" href="classCPacketBuilder.html#a441cf84e62698c8a0303083ab18dbb45">CPacketBuilder::mSendPacket</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a134cb0e013ddf5ad34fbd9fe204ae632"></a><!-- doxytag: member="CPacketBuilder::mSendPayloadInfo" ref="a134cb0e013ddf5ad34fbd9fe204ae632" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceNPacketSource.html#a41d32c941906c55fd056bc4be5e0c79b">NPacketSource::EPayloadInfo</a> <a class="el" href="classCPacketBuilder.html#a134cb0e013ddf5ad34fbd9fe204ae632">CPacketBuilder::mSendPayloadInfo</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aab69009e195d44e0bb8776285f17d277"></a><!-- doxytag: member="CPacketBuilder::mSendPayloadLength" ref="aab69009e195d44e0bb8776285f17d277" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="classCPacketBuilder.html#aab69009e195d44e0bb8776285f17d277">CPacketBuilder::mSendPayloadLength</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a19b5eca0e74948e53cf55568ccddce8a"></a><!-- doxytag: member="CPacketBuilder::mSendState" ref="a19b5eca0e74948e53cf55568ccddce8a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCPacketBuilder.html#abbea5718fbb311af19e513aa96448c67">ESendPacketState</a> <a class="el" href="classCPacketBuilder.html#a19b5eca0e74948e53cf55568ccddce8a">CPacketBuilder::mSendState</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ad11538f861ae424701c94713341af1a1"></a><!-- doxytag: member="CPacketBuilder::sIniSection" ref="ad11538f861ae424701c94713341af1a1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string <a class="el" href="classCPacketBuilder.html#ad11538f861ae424701c94713341af1a1">CPacketBuilder::sIniSection</a> = &quot;PACKET_BUILDER&quot;<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="packet__builder_8h_source.html">packet_builder.h</a></li>
<li><a class="el" href="packet__builder_8cxx.html">packet_builder.cxx</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 25 2012 22:00:44 for Whisper by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
